<?php 
   $arr=array('130','131','132','133','135','136','137','138','139','150','151','152','153','155','156','157','158','159','177','170','171','180','181','182','183','186','187','188','189');


   $a=['李涛','刘勇健','陈逍逍','王松','方福贵','刘宇','卢金路','陈呈','谢广国','徐言','刘帅','张腾达','朱怀三','赵建松','谢磊','李锋','许量','李天昊','朱雷','黄月扬','苏杰','汪海蕾','王元龙','周学文'];
   //print_r($a);
   $b=array();
   $c=array(13,14,15,16,17,18,);
   $d=array_rand($c);

  
   foreach ($a as $key => $value) {
   	 $f=$c[$d];
           	for ($i=0; $i <9; $i++) { 
             $g=rand(0,9); 
             $f=$f.$g;
             		
   };$b[$value]['name']=$value;
   $b[$value]['mb']=$f;
    
    //print_r($b[$value]['name']=$value);
  // echo$f.'<br/>';
   $h=substr( $b[$value]['mb'], 0,3);

   if (in_array($h, $arr)) {
   	echo $b[$value]['name'].'号码正取'.$b[$value]['mb'].'<br/>';
   
   }else{echo  $b[$value]['name'].'号码错误'.'<br/>';

   }


   };
   //print_r ($b);
 

   
    //print_r($b[$value]['mp']);};
    	?>
    	





 